package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.content.api.request.QueryContentInfoByIdListRequest;
import com.todo.content.api.response.ContentInfoResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/25 22:24
 * @description
 */
@FeignClient(name = "todoContentService",url = "http://localhost:18003")
public interface ContentInfoRemoteService {

    /**
     * 根据Id列表查询内容信息
     *
     * @param request
     * @return
     */
    @PostMapping("/api/contentInfo/queryContentInfoByIdList")
    BizResponse<List<ContentInfoResponse>> queryContentInfoByIdList(@RequestBody QueryContentInfoByIdListRequest request);
}
